import 'dart:convert';

CurveEntity curveEntityFromJson(String str) =>
    CurveEntity.fromJson(json.decode(str));

String curveEntityToJson(CurveEntity data) => json.encode(data.toJson());

class CurveEntity {
  CurveEntity({
    this.searchValue,
    this.createBy,
    this.createTime,
    this.updateBy,
    this.updateTime,
    this.remark,
    this.id,
    this.bizPalmfReagentBatchId,
    this.project,
    this.sample,
    this.curveParams,
    this.deliveryDate,
    this.curveType,
    this.deviceNo,
    this.country,
    this.batchNo,
    this.curveParamsHex,
    this.speedCurve,
    this.speedCurveHex,
  });

  CurveEntity.fromJson(dynamic json) {
    searchValue = json['searchValue'];
    createBy = json['createBy'];
    createTime = json['createTime'];
    updateBy = json['updateBy'];
    updateTime = json['updateTime'];
    remark = json['remark'];
    id = json['id'];
    bizPalmfReagentBatchId = json['bizPalmfReagentBatchId'];
    project = json['project'];
    sample = json['sample'];
    curveParams = json['curveParams'];
    deliveryDate = json['deliveryDate'];
    curveType = json['curveType'];
    deviceNo = json['deviceNo'];
    country = json['country'];
    batchNo = json['batchNo'];
    curveParamsHex = json['curveParamsHex'];
    speedCurveHex = json['speedCurveHex'];
    speedCurve = json['speedCurve'];
  }

  dynamic searchValue;
  dynamic createBy;
  String? createTime;
  dynamic updateBy;
  String? updateTime;
  String? remark;
  num? id;
  num? bizPalmfReagentBatchId;
  String? project;
  String? sample;
  String? curveParams;
  String? deliveryDate;
  String? curveType;
  String? deviceNo;
  String? country;
  String? batchNo;
  String? curveParamsHex;
  String? speedCurveHex;
  String? speedCurve;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['searchValue'] = searchValue;
    map['createBy'] = createBy;
    map['createTime'] = createTime;
    map['updateBy'] = updateBy;
    map['updateTime'] = updateTime;
    map['remark'] = remark;
    map['id'] = id;
    map['bizPalmfReagentBatchId'] = bizPalmfReagentBatchId;
    map['project'] = project;
    map['sample'] = sample;
    map['curveParams'] = curveParams;
    map['deliveryDate'] = deliveryDate;
    map['curveType'] = curveType;
    map['deviceNo'] = deviceNo;
    map['country'] = country;
    map['batchNo'] = batchNo;
    map['curveParamsHex'] = curveParamsHex;
    map['speedCurveHex'] = speedCurveHex;
    map['speedCurve'] = speedCurve;
    return map;
  }
}
